import request from '../index'
import {IPage} from '../user/index'
interface ISourceData {
    Id?:string,
    insName:string, 
    insSmell:string, 
    insImpurity:string, 
    insComposition:string, 
    insHeavyMetal:string, 
    insBiomarker:string,
    insToxicSub:string,
    insRemark:string,
    insPerson:string,
    insCompany:string,
    insVerify:string,
    insCreatetime:string
}

// 食品质量检测信息查询
export function getGoodInsInfo(pageConfig:IPage,values:any) {
    return request({
        url:"good/ins/info",
        data:{
            values,
            pageConfig
        }
    })
}

// 食品质量检测信息添加
export function addGoodIns(sourceData:ISourceData) {
    return request({
        url:"good/ins/add",
        data:sourceData
    })
}
// 食品质量检测信息编辑
export function editGoodIns(sourceData:ISourceData) {
    return request({
        url:"good/ins/edit",
        data:sourceData
    })
}
// 食品质量检测信息删除
export function delGoodIns(Id:number) {
    return request({
        url:"good/ins/delete",
        data:{
            Id:Id
        }
    })
}